package demo.standard;

public class ConcreteCommand2 implements ICommand {
    private Receiver receiver;

    public ConcreteCommand2(Receiver receiver) {
        this.receiver = receiver;
    }

    @Override
    public void exec() {
        System.out.println("处理命令2");
        receiver.action2();
    }
}
